

#ifndef TEXTURE_H
#define TEXTURE_H

#include "WinPic.h"
#include "3DType.h"
#include "3DMath.h"


class Texture : public WinPic
{
public:
	Texture();
	Texture(const char* filename);

	COLORREF getPixel(Float3D u,Float3D v)const;

private:
	COLORREF _nearest_sampling(Float3D u,Float3D v)const;
	COLORREF _bilinear_sampling(Float3D u,Float3D v)const;
};















#endif